//************************************************************************
//     dfmultithread.h
//     2009 © DigiFi Limited
//
//     This is the header file defines the multi-threaded communication
//     layer for communication with sophia
//
//************************************************************************

#ifndef DFMULTITHREAD_HEADER
#define DFMULTITHREAD_HEADER

#include "dfclient.h"

// #define DF_DEBUG 0


int dfmultithread_init(char *ipaddress, int num_threads);

int dfmultithread_connected(void);

int dfmultithread_queue_rget(char *command, ...);
int dfmultithread_queue_row(char *regex_name, void (*callback)(void), int id, int total, int count, int offset, char *command, ...);
int dfmultithread_queue(df_commandtype type, char *regex_name, void (*callback)(void), char *command);

int dfmultithread_shutdown(void);

void dfmultithread_dump(void);
void dfmultithread_dumpbuffer(int thread_id);



#endif